<?php

/**
 * Laravel-admin - admin builder based on Laravel.
 * @author z-song <https://github.com/z-song>
 *
 * Bootstraper for Admin.
 *
 * Here you can remove builtin form field:
 * Encore\Admin\Form::forget(['map', 'editor']);
 *
 * Or extend custom form field:
 * Encore\Admin\Form::extend('php', PHPEditor::class);
 *
 * Or require js and css assets:
 * Admin::css('/packages/prettydocs/css/styles.css');
 * Admin::js('/packages/prettydocs/js/main.js');
 *
 */
use Encore\Admin\Grid\Column;

Encore\Admin\Form::forget(['map', 'editor']);
Column::extend('popover', \App\Admin\Extensions\Popover::class);
Column::extend('expand', \App\Admin\Extensions\Column\ExpandRow::class);
Encore\Admin\Form::extend('highchart',\App\Admin\Extensions\HighChart::class);
Admin::js('/vendor/laravel-admin/jquery-sparkline/dist/jquery.sparkline.min.js');
Admin::js('/vendor/layer/layer/layer.js');
app('view')->prependNamespace('admin', resource_path('views/admin'));